<?php

namespace App\Http\Controllers\Home;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use DB;

class ActiveController extends Controller
{
    //页面
    public function index()
    {
    	$data = DB::table('active') -> where('state','1') -> first();
    	$uid = $data -> activeadminid;
    	$date = DB::table('admin') -> where('id',$uid) -> value('name');
    	return view('home.active',['data' => $data,'date' => $date]);
    }
}
